package com.guiwu.gteway.industryapp;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.view.WindowManager;

/**
 * Created by qiaoguan on 2018/4/12.
 */

public class WelcomeActivity extends RootActivity {
    private Context mContent;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        mContent = this;
        super.onCreate(savedInstanceState);
        getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN);  //去掉状态栏，实现全屏

        setContentView(R.layout.welocme_layout);

    }

    //延时两秒
    @Override
    protected void onStart() {
        super.onStart();
        new Handler().postDelayed((new Runnable() {

            @Override
            public void run() {
                // TODO Auto-generated method stub
                //    MainActivity.actionStart(mContent,null);
                //一般方法启动
                Intent intent = new Intent(WelcomeActivity.this,LogActivity.class);
                startActivity(intent);
                finish();
            }
        }),2000);
    }
}
